package com.uid.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.xr.model.Model;

/**
 * <p>
 * 
 * </p>
 *
 * @author Arnold Yang
 * @since 2018-02-21
 */
@TableName("unique_id_sequence")
public class UniqueIdSequence extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 业务类型标识，0:未分类 1:订单
     */
    private int stub;

    public UniqueIdSequence(){}

    public UniqueIdSequence(Long id, int stub){
        this.id = id;
        this.stub = stub;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getStub() {
        return stub;
    }

    public void setStub(int stub) {
        this.stub = stub;
    }

    @Override
    public String toString() {
        return "UniqueIdSequence{" +
        ", id=" + id +
        ", stub=" + stub +
        "}";
    }
}
